package model.ability;

import model.effects.Effect;

/**
 * Extends GraphicMapAbility to include a duration.
 * @author Zachary
 */
public abstract class DurationAbility extends GraphicMapAbility {
	private int duration;
	/**
	 * Constructor for a HandledAbility.
	 * @param name
	 * @param ps
	 * @param mana
	 * @param delay
	 * @param baseEffect
	 * @param at
	 * @param graphicID
	 */
	protected DurationAbility(String name, PassiveSkill ps, int mana, int delay,
			Effect baseEffect, AbilityType at, String graphicID, 
			int duration) {
		super(name, ps, mana, delay, baseEffect, at, duration, graphicID);
		this.duration = duration;
	}
	
	public int getDuration(){
		return this.duration;
	}
}
